package com.TP.www.po;

/**
 * @author 邱彦祥
 * 商品
 */
public class Good {
    /**
     * 商品id
     */
    private Integer id;
    /**
     * 商品名
     */
    private String goodName;
    /**
     * 商品价格
     */
    private Double price;
    /**
     * 商品状态
     */
    private Integer state;

    public Good() {
    }

    public Good(Integer id, String goodName, Double price, Integer state) {
        this.id = id;
        this.goodName = goodName;
        this.price = price;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Good{" +
                "goodName='" + goodName + '\'' +
                ", price=" + price +
                '}';
    }
}
